/*
 * 文件名： BankOrderExt.java
 * 
 * 工程名称: common-domain
 *
 * Gopay
 *
 * 创建日期： 2017年4月17日
 *
 * Copyright(C) 2017, by www.gopay.com.cn Inc.All rights reserved.
 *
 * 原始作者: 宣广海
 *
 */
package com.gopay.common.domain.bank;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import com.gopay.common.domain.BaseEntity;

/**
 * 银行订单扩展表
 *
 * @author 宣广海
 *
 * @version 
 *
 * @since 2017年4月17日
 */
@Entity
@Table(name = "BIS_BANK_MAIN_ORDER_EXT")
public class BankOrderExt extends BaseEntity{

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1258518976039551549L;
	/**
	 * 国付宝系统订单号（系统内唯一订单标识）
	 */
	@Column(name = "GOPAY_ORDER_ID")
	private String orderId;
	/**
	 * 银行订单号
	 */
	@Id
	@Column(name = "GOPAY_OUT_ORDER_ID")
	private String outOrderId;
	/**
	 * 本次交易所用商户号
	 */
	@Column(name="MERCHANT_ID")
	private String merchantId;
	/**
	 * 本次交易所用商户号密钥
	 */
	@Column(name="MERCHANT_KEY")
	private String merchantKey;
	/**
	 * 创建时间
	 */
	@Column(name="CREATED_TS")
	private java.util.Date createdTs;

	/**
	 * 记录最后修改时间
	 */
	@Column(name="LAST_UPD_TS")
	private java.util.Date lastUpdTs;
	/**
	 * 乐观锁版本号
	 */
	@Version
	@Column(name="VERSION")
	private java.lang.Integer version;
	
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public String getOutOrderId() {
		return outOrderId;
	}
	public void setOutOrderId(String outOrderId) {
		this.outOrderId = outOrderId;
	}
	public String getMerchantId() {
		return merchantId;
	}
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}
	public String getMerchantKey() {
		return merchantKey;
	}
	public void setMerchantKey(String merchantKey) {
		this.merchantKey = merchantKey;
	}
	public java.util.Date getCreatedTs() {
		return createdTs;
	}
	public void setCreatedTs(java.util.Date createdTs) {
		this.createdTs = createdTs;
	}
	public java.util.Date getLastUpdTs() {
		return lastUpdTs;
	}
	public void setLastUpdTs(java.util.Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}
	public java.lang.Integer getVersion() {
		return version;
	}
	public void setVersion(java.lang.Integer version) {
		this.version = version;
	}
}
